import {createApp} from 'vue'
import App from './App.vue'
import router from './router'
import { createPinia } from 'pinia'
import axios from "axios";

import 'bootstrap/dist/css/bootstrap.css'
import 'bootstrap/dist/js/bootstrap.js'
import VueQrcode from  'vue-qrcode'
import {useUserStore} from "@/store/user.js";

const app = createApp(App)
const pinia = createPinia()

app.use(pinia)
app.use(router)
app.provide('$axios',axios);
app.component('vue-qrcode',VueQrcode)

const userStore = useUserStore();
userStore.initialize();

app.mount('#app')
